0.5.0: cleanup, bug fixes, new features, tests, docs, CI#16
Merged
0.5.0: cleanup, bug fixes, new features, tests, docs, CI#16
Conversation
Owner
Wozacosta
commented
Mar 29, 2026
- Clean up: remove dead comments, add JSDoc, remove console.* calls
- Fix 8 bugs: alpha:0 handling, fromJson(null), unlearn cleanup, empty classifier, tokenizer empty string
- New features: getCategories, categorizeTopN, learnBatch, reset, getCategoryStats, input validation
- Tests: 10 -> 60 covering all methods, edge cases, and new features
- Docs: full README rewrite with options table, new methods, CI badge
- CI: GitHub Actions workflow for Node 14/16/18/20
- Bump version to 0.5.0, engine requirement to >=14.0.0
- Clean up: remove dead comments, add JSDoc, remove console.* calls - Fix 8 bugs: alpha:0 handling, fromJson(null), unlearn cleanup, empty classifier, tokenizer empty string - New features: getCategories, categorizeTopN, learnBatch, reset, getCategoryStats, input validation - Tests: 10 -> 60 covering all methods, edge cases, and new features - Docs: full README rewrite with options table, new methods, CI badge - CI: GitHub Actions workflow for Node 14/16/18/20 - Bump version to 0.5.0, engine requirement to >=14.0.0
- Add 27 integration + E2E tests (spam detection, sentiment analysis, topic classification, incremental learning, mistake correction, imbalanced datasets, serialization pipelines, preprocessor consistency) - Fix fromJson() losing runtime options after state restoration - Fix topInfluentialTokens() parameter validation (n=0, negative) - Add categorizeWithConfidence() threshold validation (0-1 range) - Add tokenPreprocessor option for stopword removal and stemming - Fix constructor error message typo - Enhanced README with ASCII pipeline diagrams, visual explanations of alpha/fitPrior, workflow examples, and test suite documentation - 109 tests total (82 unit + 7 integration + 20 E2E)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.